/*
 * @Author: Starfish_DL
 * @Date: 2020-10-08 00:51:10
 * @LastEditors: Starfish_DL
 * @LastEditTime: 2020-10-08 11:45:12
 * @CurrentVersion: 1.0
 * @Description: 
 */

public class Cylinder extends Circle{
    private double length;
    public Cylinder() {
        super();
        this.length=1;
    }
    public Cylinder(double radius,String color,double weight,double length) {
        super(radius,color,weight);
        this.length=length;
    }    
    public void setLength(double length) {
        this.length=length;
    }
    public double getLength() {
        return this.length;
    }
    public double findVolume() {
        //return this.findArea()*length;
        return super.findArea()*length;
    }
    public double findArea() {
        return this.length*this.getRadius()*2*3.14;
    }
}
